package com.company.network;

import com.company.network.base.NetWorkApi;

import io.reactivex.functions.Function;
import okhttp3.Interceptor;

public class DouBanApi extends NetWorkApi {

    private static volatile DouBanApi instance;

    public static DouBanApi getInstance() {
        if (instance == null) {
            synchronized (DouBanApi.class) {
                if (instance == null) {
                    instance = new DouBanApi();
                }
            }
        }
        return instance;
    }

    @Override
    protected Interceptor getInterceptor() {
        return null;
    }

    @Override
    protected <T> Function<T, T> getAppErrorHandler() {
        return null;
    }

    @Override
    public String getFormal() {
        return "http://api.douban.com";
    }

    @Override
    public String getTest() {
        return "http://api.douban.com";
    }
}
